<?php 
use_helper('I18N'); 
?>

    <div id="headerDiv" class="ui-widget-header">
        <br/><br/><h2>Raid Points System<br/><a href="<?php echo url_for('homepage') ?>">Administration</a></h2>
        <div id="switcher"></div>
    </div>
    <div id="primaryDiv" class="ui-widget-content ui-corner-bottom">
<div id="ctr" align="center">
        <h1 class="ui-widget-header ui-corner-all">
            Login
        </h1>
        <div class="login">
            <div class="login-text">
                <!--<div class="ctr"><img alt="Security" src="<?php echo image_path(sfJqueryDash::getProperty('web_dir', '/sfJqueryDashPlugin').'/images/login_security.png'); ?>" /></div>-->
                <p><?php echo __('Welcome to', array(), 'sf_admin_dash'); ?> <?php echo sfJqueryDash::getProperty('site'); ?></p>
                <p><?php echo __('Use a valid username and password to gain access to the administration console.', array(), 'sf_admin_dash'); ?></p>
            </div>
            <div class="login-form">
                <form action="<?php echo url_for(sfJqueryDash::getProperty('login_route', '@sf_guard_signin')); ?>" method="post">
                    <div class="form-block">
                        <?php echo $form->renderGlobalErrors(); ?>
                        <?php if(isset($form['_csrf_token'])): ?>
                            <?php echo $form['_csrf_token']->render(); ?>
                        <?php endif; ?>
                        <div class="inputlabel"><?php echo $form['username']->renderLabel(__('Username', array(), 'sf_admin_dash')); ?>:</div>
                        <div>
                            <?php echo $form['username']->renderError(); ?>
                            <?php echo $form['username']->render(array('class' => 'inputbox')); ?>
                        </div>
                        <div class="inputlabel"><?php echo $form['password']->renderLabel(__('Password', array(), 'sf_admin_dash')); ?>:</div>
                        <div>
                            <?php echo $form['password']->renderError(); ?>
                            <?php echo $form['password']->render(array('class' => 'inputbox')); ?>
                        </div>
                        <div class="inputlabel">
                            <?php echo $form['remember']->renderLabel(__('Remember?', array(), 'sf_admin_dash')); ?>
                            <?php echo $form['remember']->render(array('class' => 'inputcheck')); ?>
                        </div>
                        <div><input type="submit" name="submit" class="button clr" value="<?php echo __('Login', array(), 'sf_admin_dash'); ?>" /></div>
                    </div>
                </form>
            </div>
            <div class="clr"></div>
        </div>
</div>
